import random
import string


def mkpasswd(length=8, chars=string.ascii_letters + string.digits):
    return ''.join([random.choice(chars) for i in range(length)])


if __name__ == '__main__':
    print(mkpasswd())


print(__name__)